package cn.nange.cmfz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class AdminLog {
    @TableId(value = "log_id",type = IdType.AUTO)
    private Integer id;
    private Integer adminId;
    @DateTimeFormat(pattern = "yyyy-MM-dd-HH-mm-ss")
    @JsonFormat(timezone = "GMT+8" ,pattern = "yyyy年MM月dd日 HH: mm :ss")
    private Date logDate;
    private String logContent;
    private String logType;
    private String ip;
    private Admin admin;
}
